﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace WP7DSMClient.Services.DesignTime
{
    /// <summary>
    /// Provides storage facilities for settings.
    /// </summary>
    public class StorageSettingsService : IStorageSettingsService
    {

        #region ISettingsStorageService Members

        /// <summary>
        /// Update a setting value for our application. If the setting does not
        /// exist, then add the setting.
        /// </summary>
        /// <param name="key">The key to identify the value to store.</param>
        /// <param name="value">The value to store.</param>
        /// <returns><b>true</b> if successfull, <b>false</b> otherwise.</returns>
        public bool AddOrUpdateValue(string key, object value)
        {
            return true;
        }

        /// <summary>
        /// Get the current value of the setting, or if it is not found, set the 
        /// setting to the default setting.
        /// </summary>
        /// <typeparam name="valueType">The type of the object to retrieve.</typeparam>
        /// <param name="key">The key of the object to retrieve.</param>
        /// <param name="defaultValue">The default value if the key doesn't exist.</param>
        /// <returns>The value retrieved.</returns>
        public valueType GetValueOrDefault<valueType>(string key, valueType defaultValue)
        {
            return default(valueType);
        }

        /// <summary>
        /// Save the settings.
        /// </summary>
        public void Save()
        {
        }

        #endregion
    }
}
